/**
 * @file xcd_util.h
 * @brief Collection of useful utility functions.
 * @author Guo-Rong Koh
 * @date 25 February 2008
 *
 * @par Copyright Notice
 * Copyright Guo-Rong Koh 2008.
 */

/*
 * This file is part of xceed.
 *
 * xceed is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License Version 2 as published by the Free
 * Software Foundation.
 *
 * xceed is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * xceed.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef XCD_UTIL_H
#define XCD_UTIL_H

/**
 * Population count for 32-bit values.
 *
 * Counts the number of set bits in a 32-bit value.
 *
 * @param[in] x 32-bit value to population count.
 */
unsigned int xcd_util_popcount32(register unsigned int x);

#endif
